<?php
namespace app\admin\controller;


use app\admin\model\Rule;
use think\Controller;
use app\admin\model\Admin;
use think\Session;

class Index extends Common
{
    public function index()
    {
        $this->assign('rules',$this->rules);
        return $this->fetch();

    }

    public function welcome()
    {
        return $this->fetch();
    }

    public function logon(){
        Session::clear();
        session_unset();
        $this->redirect("login/index");
    }

}